package cp2013;

import java.io.Serializable;



/**
 *
 * @author AcerXPS
 */
public class Item implements Serializable {

    private int itemId;
    private String itemName;
    private String description;
    private int sellerID;
    private String sellerName;
    private String startDate;
    private String finishDate;
    private int startingBid;
    private int currentBid;
    private String highestBidder;
    private String status;


    public Item(String name, String desc, String sellID, String sellerN, String startD, String finishD, String startBid, String crrntBid, String highBidder){
        this.itemName = name;
        this.description = desc;
        this.sellerID = Integer.parseInt(sellID);
        this.sellerName = sellerN;
        this.startDate = startD;
        this.finishDate = finishD;
        this.startingBid = Integer.parseInt(startBid);
        this.currentBid = Integer.parseInt(crrntBid);
        this.highestBidder = highBidder;

    }
    /**
     * @return the itemId
     */
    public int getItemId() {
        return itemId;
    }

    /**
     * @param itemId the itemId to set
     */
    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    /**
     * @return the itemName
     */
    public String getItemName() {
        return itemName;
    }

    /**
     * @param itemName the itemName to set
     */
    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the sellerId
     */
    public String getSellerName() {
        return sellerName;
    }

    /**
     * @param sellerId the sellerId to set
     */
    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    /**
     * @return the startDate
     */
    public String getStartDate() {
        return startDate;
    }

    /**
     * @param startDate the startDate to set
     */
    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    /**
     * @return the finishDate
     */
    public String getFinishDate() {
        return finishDate;
    }

    /**
     * @param finishDate the finishDate to set
     */
    public void setFinishDate(String finishDate) {
        this.finishDate = finishDate;
    }

    /**
     * @return the startingBid
     */
    public int getStartingBid() {
        return startingBid;
    }

    /**
     * @param startingBid the startingBid to set
     */
    public void setStartingBid(int startingBid) {
        this.startingBid = startingBid;
    }

    /**
     * @return the currentBid
     */
    public int getCurrentBid() {
        return currentBid;
    }

    /**
     * @param currentBid the currentBid to set
     */
    public void setCurrentBid(int currentBid) {
        this.currentBid = currentBid;
    }

    /**
     * @return the highestBidder
     */
    public String getHighestBidder() {
        return highestBidder;
    }

    /**
     * @param highestBidder the highestBidder to set
     */
    public void setHighestBidder(String highestBidder) {
        this.highestBidder = highestBidder;
    }

    /**
     * @return the sellerID
     */
    public int getSellerID() {
        return sellerID;
    }

    /**
     * @param sellerID the sellerID to set
     */
    public void setSellerID(int sellerID) {
        this.sellerID = sellerID;
    }

    public void setStatus(String status){
        this.status = status;
    }

    public String getStatus(){
        return this.status;
    }

}
